﻿<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>

<script language="javascript">
    function ok(str1,str2)
    {
        document.form1.action="paramDataSearch.action?busiId=searchParamData&q_typeCode=" + str1 + "&q_canModify=" + str2;
        document.form1.submit();
    }
    function searchForm(){
    	var typeCode = document.getElementById("q_typeCode").value;
    	var name = document.getElementById("q_name").value;
    	//alert(typeCode);
    	//alert(name);
    	var url = "${ctx}/system/paramDataDesc.action?act=query&busiId=searchParamDataDesc";
    	//alert(url);
    	var options = {"q_typeCode":typeCode,"q_name":name};
    	submit_ajax(url,options);
    	//$("#mainframe").load(url,{"q_typeCode":typeCode,"q_name":name});
    }
</script>
<body style="overflow-x:hidden;overflow-y:auto;">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%@include file="/WEB-INF/core/common/message.jsp"  %>
  <tr width="100%"><td><table border="0" align="center" cellpadding="0" cellspacing="0">
	<td width="8" height="27" align="left"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td> 
    <td width="99%"  align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="parmData.maintenance" /></td>
    <td width="8" align="right"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    </table>
    </td>
  </tr>
  <tr>
    <td colspan="3" class="biaoge"  valign="top">
	<table width="100%" border="0" align="center" cellspacing="0">
      <tr>
        <td height="10"></td>
      </tr>  
	  <tr>
		<!-- 查询条件 -->
	    <td class="tabulation" colspan="3"><div style="position:relative">
	      <div id="menu1"><img src="${ctx}/core/images/icon_13.gif"><s:text name="info.queryCondition" /></div>
	      <form name="mainForm" method="post"  onsubmit="searchForm(); return false;">
	        <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
	        	
		        	<input type="hidden" name="act" value="query"/>
					<input type="hidden" name="busiId" value="searchParamDataDesc"/>
			        <tr align="left">
				        <td width="6%" height="20" bgcolor="#DDE4EA" nowrap="nowrap"="nowrap="nowrap"">&nbsp;&nbsp;<s:text name="parmData.type" /></td>
				        <td width="27%" bgcolor="#DDE4EA">
				            <exts:textfield id="q_typeCode" name="q_typeCode" value="%{q_typeCode}" class="textbox_css" style="width:150px" /></td>        
				        <td width="6%" bgcolor="#DDE4EA" nowrap="nowrap">&nbsp;&nbsp;<s:text name="parmData.name" /></td>
				        <td width="27%" bgcolor="#DDE4EA">
				            <exts:textfield id="q_name" name="q_name" value="%{q_name}" class="textbox_css" style="width:150px"/>
				        </td>
				    </tr>  
    		        <tr>
			        	<td height="20" colspan="4" align="right" bgcolor="#DDE4EA">
						   <input type="submit" class="btn" name="quary" value="<s:text name='log.manage.query' />" />
				        </td>
			        </tr>		       
		       
			</table> </form></div></td>
	<!-- 查询条件结束 -->

  </tr>
  <tr>
    <td height="5"></td>
  </tr>
  <tr>
    <td height="10" background="${ctx}/core/images/line5.gif"></td>
    </tr>
  <tr>
    <td height="5"></td>
  </tr>
<!-- 表格 -->	
  <tr>
    <td colspan="3">	 <form method="post" name="form1" action="" >
      <table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">
	        <tr bgcolor="#C7D6EA">
	          <td width="5%" height="20" align="center" class="table_head"><s:text name="parmData.id" /></td>
	          <td width="40%" class="table_head"><s:text name="parmData.name" /></td>
	          <td width="40%" class="table_head"><s:text name="parmData.type" /></td>
	          <td width="10%" align="center" class="table_head"><s:text name="parmData.edit" /></td>
	          <td width="5%" align="center" class="table_head"><s:text name="parmData.operate" /></td>
	        </tr>
	        <s:iterator value="pageInfo.searchResult" id="it" status="st">
		        <tr>
		          <td height="20" align="center">&nbsp;<s:property value="%{(pageInfo.currentPageNo-1)*pageInfo.pageSize+#st.index+1}" /></td>
		          <td align="center">&nbsp;<exts:property value="1"/></td>
		          <td align="center">&nbsp;<exts:property value="2"/></td>
		          <td align="center">&nbsp;<s:if test="#it[3]==1">
			                <s:text name="label.Yes" />
			           </s:if>
			           <s:else>
			                <s:text name="label.No" />		              
			          </s:else></td>
			      <td align="center">
		              <a href="#" onclick="submit_ajax('${ctx}/system/paramDataSearch.action?busiId=searchParamData&q_typeCode=<exts:property value='2'/>&q_canModify=<exts:property value='3'/>','mainframe');"><img src="${ctx}/core/images/view.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='parmData.modify' />"/></a>
		          </td>
		        </tr>
	        </s:iterator>
	
      </table>
          </form>
<!-- 表格结束 -->			  
	
<!-- 下分页结束 -->
             <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr><td>${pagination}</td></tr>
              </table>
<!-- 下分页结束 -->				
		  </td></tr></table>
</td></tr></table>	
</body>

<script>
	tables('content',null);
</script>